package com.wwinsoft.framework.dao.security;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.wwinsoft.modules.orm.Page;
import com.wwinsoft.modules.orm.mybatis.MyBatisDao;
import com.wwinsoft.modules.security.springsecurity.SpringSecurityUtils;
import com.wwinsoft.oa.entity.plan.Workplan;
import com.wwinsoft.oa.pojo.terminal.TerminalMaintainBean;

/**
 * @author: Tim Chen
 * @since 1.0
 */
@Component
public class AuthorityQueryDao extends MyBatisDao {

    public String searchSQLLimitByAuthority(String authorityName){
        Map paraMap = new HashMap();
        paraMap.put("authorityName", authorityName);
        paraMap.put("userName", SpringSecurityUtils.getCurrentUserName());
        return  (String)getSqlSession().selectOne("Authority.selectSQLAuthority",paraMap);
    }

}
